<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>管理员重置密码</title>
    <link rel="stylesheet" href="css/font-awesome.min.css"/>
    <link rel="stylesheet" href="css/font-awesome-ie7.min.css"/>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/admin.css"/>
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <![endif]-->
    <!--[if lt IE 10]>
    <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/jquery-placeholder/2.0.8/jquery.placeholder.min.js"></script>
    <![endif]-->
</head>
<body>
<!-- header start -->
<div class="header" id="header">

</div>
<!-- header end -->
<!-- usercenter start -->
<div class="usercotent">
    <!-- left start -->
    <div id="center-left"></div>
    <!-- left end -->
    <!-- order right start -->
    <div class="usercotentr floatr">
        <div class="user-tit" style="margin-bottom:10px">
            <h3>重置密码</h3>
        </div>


        <!-- password start -->
        <div class="user-con">

            <div class="row">
                <div class="col-md-6 col-md-offset-3">
                    <div class="moe-password">
                        <div class="form-horizontal" role="form">
                            <div class="form-group" style="height: 80px\9; width: 800px\9">
                                <label style="width: 100px;line-height: 30px;" for="inputEmail3"
                                       class="col-sm-2 control-label floatl">账号:</label>
                                <div style="width: 200px" class="col-sm-6 floatl">
                                    <input id="account" type="text" class="form-control" id="inputEmail3">
                                </div>
                                <div class="col-sm-4 floatl">
                                    <span style="display: none;" class="error">用户名不存在</span>
                                </div>
                                <div class="clear"></div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button id="passwordReset" type="button" class="btn btn-primary">确&nbsp;&nbsp;&nbsp;&nbsp;定</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <!-- password end -->
    </div>
    <div class="clear"></div>
    <!-- order right end -->
</div>

<!-- usercenter end -->

<!-- footer start -->
<div class="footer">
    <div class="bot">
        <p style="padding-top: 10px; text-align: center">Copyright (C) 都能印 2014-2016, all Rights Reserved |
            豫ICP备14024464号-1 | 增值电信业务经营许可证：豫B2-20150019</p>
        <p class="authentication" style="padding-bottom: 10px; padding-top: 10px;">
            <img src="img/footer1.png" alt="">
            <img src="img/footer2.png" alt="">
            <img src="img/footer3.png" alt="">
            <img src="img/footer4.png" alt="">
            <img src="img/footer5.png" alt="">
        </p>

    </div>
</div>
<!-- footer end -->
<script src="js/jquery.min-1-11-3.js"></script>
<script src="js/widget/admin.js"></script>
<script src="js/sidebar-menu.js"></script>
<script>
    $(function () {

        initSideAccMenu("合伙人管理", "账号密码重置");

    });
    $(function () {

        $("#passwordReset").click(function () {
            var account = $("#account").val();
            if (!account) {
                alert("用户名不能为空");
                return;
            }
            ;
            //重置密码
            var url = "apis/user/resetaccountpassword";
            $.ajax({
                url: url,
                type: 'post',
                data: {
                    account: account
                },
                dataType: 'json',
                success: function (data, status, xhr) {
                    if (data.httpCode == 200) {
                        alert("重置密码成功");
                        window.location.reload();
                    } else {
                        alert(data.data);
                    }
                }
            });
        });
    });
</script>
</body>
</html>